var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * Salient "Ineractive Map: Leaflet" script file. * * @package Salient * @author ThemeNectar */ /* global L */ jQuery(document).ready(function($){ "use strict"; var maps = []; $(window).on( 'vc_reload', function() { if(maps.length > 0) { for(var i=0; iOpenStreetMap contributors' }).addTo(maps[i]); //store index var j = i; $('.map-marker-list.'+mapID).each(function(){ $(this).find('.map-marker').each(function(){ var iconObj = {}; var customIcon; if(markerStyle == 'nectar') { customIcon = L.divIcon({ html: '
' + '
' + '
' + '
' + '
' }); iconObj = { icon: customIcon }; } else if($('#'+mapID).attr('data-marker-img').length > 0) { //get image size var imgHeight = ($(this).is('[data-marker-image-height]') && $(this).attr('data-marker-image-height').length > 0) ? parseInt($(this).attr('data-marker-image-height')) : 50; var imgWidth = ($(this).is('[data-marker-image-width]') && $(this).attr('data-marker-image-width').length > 0) ? parseInt($(this).attr('data-marker-image-width')) : 50; customIcon = L.icon({ iconUrl: $('#'+mapID).attr('data-marker-img'), iconSize: [imgWidth, imgHeight] }); iconObj = { icon: customIcon }; } else { //regular customIcon = L.divIcon({ html: '
', iconSize: [34, 34], popupAnchor: [-3, -13], iconAnchor: [20, 20], }); iconObj = { icon: customIcon }; } var markerLat = ($(this).is('[data-lat]') && $(this).attr('data-lat').length > 0) ? parseFloat($(this).attr('data-lat')) : 0; var markerLng = ($(this).is('[data-lng]') && $(this).attr('data-lng').length > 0) ? parseFloat($(this).attr('data-lng')) : 0; //marker ////with infowindow if($(this).attr('data-mapinfo') != '' && $(this).attr('data-mapinfo') != '
' && $(this).attr('data-mapinfo') != '
') { if(!closePopupOnClickBool) { //start open L.marker([markerLat, markerLng], iconObj).addTo(maps[j]) .bindPopup($(this).attr('data-mapinfo'), {autoClose: false}).openPopup(); ////needed to avoid wrong center point (marker autopanning) maps[j].setView([centerlat, centerlng], zoomLevel); } else { //start closed L.marker([markerLat, markerLng], iconObj).addTo(maps[j]) .bindPopup($(this).attr('data-mapinfo')); } } ////without infowindow else { L.marker([markerLat, markerLng], iconObj).addTo(maps[j]); } }); }); }); } nectarLeafletInit(); }); } /* FILE ARCHIVED ON 11:37:52 Jun 01, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 12:24:39 Jul 28, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.562 exclusion.robots: 0.017 exclusion.robots.policy: 0.008 esindex: 0.011 cdx.remote: 112.906 LoadShardBlock: 349.658 (3) PetaboxLoader3.datanode: 333.289 (4) load_resource: 280.34 PetaboxLoader3.resolve: 238.815 */